<?php
require_once('Smarty/Smarty.class.php');

class SmartySetup extends Smarty {
    function __construct() {
        parent::__construct();
        $this->setTemplateDir(ROOT .'/templates/');
        $this->setCompileDir(ROOT .'/templates/compile/');
        $this->setConfigDir(ROOT .'/templates/configs/');
        $this->setCacheDir(ROOT .'/templates/cache');
//        $this->caching= Smarty::CACHING_LIFETIME_CURRENT;
    }
} 